Can't update global variable within function AWS lambda node